/**
 * TravelSolution.java
 * jCOLIBRI2 framework. 
 * @author Dmitry
 */

import jcolibri.cbrcore.Attribute;
import jcolibri.datatypes.Instance;

/**
 * Bean that stores the solution of the case.
 * @author Juan A. Recio-Garcia
 * @version 1.0
 */ 
public class TwisterSolution implements jcolibri.cbrcore.CaseComponent{

	Instance mainConcept;
	Instance Happened;
	
	public String toString()
	{
		return "("+mainConcept+";"+Happened+")";
	}
	
	public Attribute getIdAttribute() {
		
		return new Attribute("mainConcept", this.getClass());
	}
	/**
	 * @return Returns the id.
	 */
	public Instance getMainConcept() {
		return mainConcept;
	}

	/**
	 * @param mc The main concept to set.
	 */
	public void setMainConcept(Instance mc) {
		this.mainConcept = mc;
	}


	public Instance getHappened() {
		return Happened;
	}

	public void setHappened(Instance a) {
		this.Happened = a;
	}
	
	

}
